package com.ansatsing.juc.executor.scenario3;

import java.util.Date;
import java.util.concurrent.Callable;

public class Task implements Callable<String> {
    private String name;
    public Task(String name){
        this.name = name;
    }
    @Override
    public String call() throws Exception {
        System.out.printf("%s staring at %s\n",name,new Date());
        return Thread.currentThread().getName();
    }
}
